<!DOCTYPE html>
<html lang = 'en'>
    <head>
        <meta charset="UTF-8">
        <title>九九乘法表</title>
    </head>
    <body>
        九九乘法表
        <div id = 'mydiv'></div>
    </body>
       <script>
        var result = ' ';
        for (var i = 1;i <= 9;i++){
            var str = ' ';
            for (var j = 1;j <= i;j++){
                str+=i+'x'+j+'='+i*j+'\t';
            }
             result += str + '</br>';
        }
        
        document.getElementById('mydiv').innerHTML = result;
       </script>
    
</html>